/**
 * 
 */
package com.clh.service;

import java.util.List;

import com.clh.common.PageInfo;
import com.clh.entity.Announcement;

/**
 * @Description: 公告Service层
 * @author 邱凯臻
 * @date 2022年5月27日 下午4:14:46
 * @version v1.0
 */
public interface AnnouncementService {

	List<Announcement> findAll();

	List<Announcement> findByCondition(Announcement announcement);

	/**
	 * 公告分页查询
	 * @param announcement
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	PageInfo<Announcement> findByPage(Announcement announcement, int pageNum, int pageSize,String startDate,String endDate);
	
	/**
	 * 添加公告
	 * @param announcement
	 * @return
	 */
	boolean add(Announcement announcement);
	
	/**
	 * 更新公告
	 * @param announcement
	 * @return
	 */
	boolean update(Announcement announcement);
}
